{template 'common/header'}
	<div class="clearfix">
		{template 'platform/stat-rule_search'}
			<h4 class="sub-title">详细数据</h4>
			<div class="table-responsive">
				<table class="table table-hover">
					<thead>
						<tr>
							<th class="row-hover">规则<i></i></th>
							<th style="width:80px;">模块<i></i></th>
							<th style="width:80px;">命中次数<i></i></th>
							<th style="width:120px;">最后触发<i></i></th>
							<th style="width:80px;">操作</th>
						</tr>
					</thead>
					<tbody>
						{loop $list $row}
						<tr>
							<td class="row-hover">{if empty($row['rid'])}N/A{else}<a target="main" href="{php echo url('platform/reply/post', array('m' => $rules[$row['rid']]['module'], 'rid' => $row['rid']))}">{$rules[$row['rid']]['name']}</a>{/if}</td>
							<td>{if $rules[$row['rid']]['module']}{$rules[$row['rid']]['module']}{else}default{/if}</td>
							<td>{$row['hit']}</td>
							<td style="font-size:12px; color:#666;">{php echo date('Y-m-d <br /> h:i:s', $row['lastupdate']);}</td>
							<td>
								<a target="main" href="{php echo url('platform/stat/trend', array('id' => $row['rid']))}" class="btn btn-default btn-small" title="使用率走势"><i class="fa fa-bar-chart-o"></i></a>
							</td>
						</tr>
						{/loop}
					</tbody>
				</table>
			</div>
			{$pager}
	</div>
{template 'common/footer'}
